import {renderComponent} from "../react-dom/index"
class Component {
  constructor (props = {}) {
    this.props = props;
    this.state = {};
  }
  setState (stateChange) {
    Object.assign(this.state, stateChange);
    renderComponent(this)
  }
}
export default Component;